home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 307 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. From: jcoffin@rmii.com (Jerry Coffin)
  2. Message-ID: <4f8a3g$sgq@natasha.rmii.com>
  3. X-Original-Date: Tue, 06 Feb 1996 20:38:48 GMT
  4. Path: in1.uu.net!bounce-back
  5. Date: 07 Feb 96 01:48:03 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: Re: #ifdef XXXX
  9. Organization: TAEUS
  10. References: <1996Feb1.092058.4745@iiasa.ac.at> <3112531A.3410@ElSegundoCA.ATTGIS.COM>
  11. X-Newsreader: Forte Free Agent 1.0.82
  12. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  13.     iQBFAgUBMRgE4eEDnX0m9pzZAQFvQQF/U2o6FclpaLv50+pitOiqfMqeIhbYOkIL
  14.     jb9r9kVYJ+M9rgVU1lNQeBXceqmNT1JL
  15.     =4ici
  16.  
  17. "Charles F. McDevitt" <Chuck.McDevitt@elsegundoca.attgis.com> wrote:
  18.  
  19. >Wouldn't it be better to update the C++ standard so the
  20. >default is that include files only get included once, and the
  21. >compiler/preprocessor keeps track of which ones it's already 
  22. >seen.  Then we wouldn't have to mess with these ugly #ifdefs
  23. >to make include files only be included once.
  24.  
  25. This would require adding some special directive to deal with those
  26. headers that may need to be included more than once.  E.g. assert.h may
  27. be included any number of times, and depending on the current defintion
  28. of NDEBUG, the definition of assert will change with each new inclusion.
  29. ---
  30. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  31.   Contact address: std-c++-request@ncar.ucar.edu.  Moderation policy:
  32.   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  33.